package com.hdyg.sixg.adapter;

import android.support.annotation.Nullable;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hdyg.sixg.R;
import com.hdyg.sixg.entry.ManageMoneyBean;
import java.util.List;

/**
 * @author CZB
 * @describe 理财记录适配器
 * @time 2019/4/22 14:22
 */
public class ManageMoneyRecordAdapter extends BaseQuickAdapter<ManageMoneyBean.ListBean, BaseViewHolder> {
    public ManageMoneyRecordAdapter(int layoutResId, @Nullable List<ManageMoneyBean.ListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ManageMoneyBean.ListBean item) {
        helper.setText(R.id.tv_type, item.getType());
        helper.setText(R.id.tv_time, item.getCreated_at());
        helper.setText(R.id.tv_money, item.getAmount());
        helper.addOnClickListener(R.id.bt_sure);

    }
}
